package com.coderush.admin.core.response;

public enum ResultCodeEnum {

    /**
     * 操作成功
     */
    SUCCESS(200 , "操作成功") ,

    SYSTEM_ERROR(500 , "系统异常"),

    NULL_POINTER(220, "空值异常"),

    BAD_PARAM(403, "请求参数错误"),

    LOGIN_VALID_CODE_EMPTY(222, "请输入正确的验证码");


    /** 业务状态码 **/
    private Integer code ;

    /** 响应消息 **/
    private String message ;

    ResultCodeEnum(Integer code, String message) {
        this.code = code ;
        this.message = message ;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
